package com.fortune.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fortune.dao.DPermissionDao;
import com.fortune.service.DPermissionService;
import com.fortune.vo.mPermission.Menu;
@Service
public class DPermissionServiceImpl implements DPermissionService {
	@Autowired
	private DPermissionDao dPermissionDao;

	@Override
	public List<Menu> listMenusByPositionId(String dId, String positionId) {
		return dPermissionDao.listMenusByPositionId(dId,positionId);
	}

	@Override
	public List<String> listPermissions(String dId, String positonId) {
		return dPermissionDao.listPermissions(dId,positonId);
	}

}
